package com.web.base.log.model;

import com.blue.core.dict.Result;
import com.blue.jdbc.annotation.Id;
import com.blue.jdbc.annotation.Table;
import com.blue.jdbc.annotation.Transient;
import com.web.core.dict.SmsType;

import java.util.Date;

/**
 * 短信日志实体类
 * 
 * @author 代码由 blue-code 框架生成
 * @since 1.0 2017年11月21日
 */
@Table(name = "log_sms")
public class Sms
{
	@Id
	private Integer id; // 编号
	private Integer userId; // 用户编号
	private String mobile; // 手机号码
	private SmsType type; // 短信类型：1验证码
	private String params; // 短信参数
	private Result result; // 发送结果
	private Date sendTime; // 发送时间
	private String seq; // 序列号

	@Transient
	private String userName; // 用户名称
	
	public Sms()
	{
	}
	
	public Integer getId()
	{
		return this.id;
	}
	
	public void setId(Integer id)
	{
		this.id = id;
	}
	
	public Integer getUserId()
	{
		return this.userId;
	}
	
	public void setUserId(Integer userId)
	{
		this.userId = userId;
	}
	
	public String getMobile()
	{
		return this.mobile;
	}
	
	public void setMobile(String mobile)
	{
		this.mobile = mobile;
	}
	
	public SmsType getType()
	{
		return this.type;
	}
	
	public void setType(SmsType type)
	{
		this.type = type;
	}
	
	public String getParams()
	{
		return this.params;
	}
	
	public void setParams(String params)
	{
		this.params = params;
	}
	
	public Result getResult()
	{
		return this.result;
	}
	
	public void setResult(Result result)
	{
		this.result = result;
	}
	
	public Date getSendTime()
	{
		return this.sendTime;
	}
	
	public void setSendTime(Date sendTime)
	{
		this.sendTime = sendTime;
	}
	
	public String getSeq()
	{
		return this.seq;
	}
	
	public void setSeq(String seq)
	{
		this.seq = seq;
	}

	public String getUserName()
	{
		return userName;
	}

	public void setUserName(String userName)
	{
		this.userName = userName;
	}
}
